np.menuData = [{
  title: '文件(F)',
}, {
  title: '编辑(E)',
  menuItems: [{
    title: '撤销(U)',
    shortcut: 'Ctrl+Z',
    enabled: false,
    handler: function() { console.log('"撤销(U)"成功!'); }
  }, {
    title: 'hr',
    shortcut: '',
    enabled: true,
    handler: null
  }, {
    title: '剪切(T)',
    shortcut: 'Ctrl+X',
    enabled: true,
    handler: function() { console.log('"剪切(X)"成功!'); }
  }, {
    title: '复制(C)',
    shortcut: 'Ctrl+C',
    enabled: false,
    handler: function() { console.log('"复制(C)"成功!'); }
  }, {
    title: '粘贴(P)',
    shortcut: 'Ctrl+V',
    enabled: false,
    handler: function() { console.log('"粘贴(P)"成功!'); }
  }, {
    title: '删除(L)',
    shortcut: 'Del',
    enabled: false,
    handler: function() { console.log('"删除(L)"成功!'); }
  }],
  width: '200px',
  left: '52px'
}, {
  title: '格式(O)',
  menuItems: [{
    title: '字体(F)',
    shortcut: '',
    enabled: true,
    handler: () => $dlgFont.show({
      family: np.fontFamily,
      style: np.fontStyle,
      size: np.fontSize,
      okHandler: np.fontHandler
    })
  }],
  width: '156px',
  left: '106px'
}, {
  title: '查看(V)',
  menuItems: [{
    title: '状态栏(S)',
    shortcut: '',
    enabled: true,
    handler: () => {
      np.bShowStatusBar = !(typeof(np.bShowStatusBar) === 'boolean' ?
        np.bShowStatusBar :
        np.bShowStatusBar === 'true') ;
      localStorage.setItem('bShowStatusBar', np.bShowStatusBar);
      $statusBar.display(np.bShowStatusBar);
      $menubar.checked(3, 0, np.bShowStatusBar);
      $editor.resize(np.bShowStatusBar);
    }
  }],
  width: '140px',
  left: '160px'
}, {
  title: '帮助(H)',
  menuItems: [{
    title: '查看帮助(H)',
    shortcut: '',
    enabled: true,
    handler: () => window.open('https://cn.bing.com/search?q=获取有关+windows+10+中的记事本的帮助', '_blank')
  }, {
    title: '关于记事本(A)',
    shortcut: '',
    enabled: true,
    handler: () => $dlgAbout.show()
  }],
  width: '165px',
  left: '215px'
}];